package com.house.service.impl;

import com.house.common.utils.R;
import com.house.service.ThreepartService;
import com.house.util.SendSms;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @ClassName ThreepartServiceImpl
 * @Description TODO
 * @Author
 * @DATE 2022/4/23 9:06
 */
@Service
public class ThreepartServiceImpl implements ThreepartService {

    public R sendSms(Map<String, Object> map) {
        String phone = (String) map.get("phone");
        String code = (String) map.get("code");
        SendSms.sendCode(phone,code);
        return R.ok();
    }
}
